// 导入后端接口地址
import { API_CONFIG } from "../config/index.js"
import  request from "./index.js"


export const login = (labelname,username, password,response_type,authorizationCode,state,client_id,redirect_uri,scope) =>{
    /*
        {
            username: username,
            password: password
        }
        ==>简写位{username,password}
    */
    return request(API_CONFIG.loginAuth0,{labelname,username, password,response_type,authorizationCode,state,client_id,redirect_uri,scope},"POST",2000)
}

